# -*- coding:utf-8 -*-
from helper.mongo_helper import MongoUtils


class SaveEngine:
    def __init__(self):
        pass

    def save(self, data):
        pass

    def batch_save(self, data_list):
        pass


class MongoSaveEngine(SaveEngine):
    def __init__(self,collection):
        self.collection = collection

    def save(self,collection, data):
        MongoUtils().save(self.collection,data)

    def batch_save(self, data_list):
        MongoUtils().save(self.collection,data_list)
